package com.web.controller;

import com.jfinal.core.Controller;
import com.web.model.UserModel;
import org.apache.log4j.Logger;

/**
 * Created by reeveslee on 16/7/4.
 */
public class UserController extends Controller {
    private static final Logger LOGGER = Logger.getLogger(UserController.class);

    public void editUserInfo() {
        int userId = (int) (long) getSession().getAttribute("userId");
        String college = getPara("college");
        String wechatAccount = getPara("wechatAccount");
        String telnumber = getPara("telnumber");
        String slogan = getPara("slogan");
        String invite = getPara("invite");
        String runapp = getPara("runapp");

        UserModel.userDao.changeUserInfo(userId, college, wechatAccount, telnumber, slogan, invite,runapp);

        redirect("/route/gotoMain");
    }
}
